package com.usian.api.article;

import com.usian.model.article.pojos.ApAuthor;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface AuthorControllerApi {
        /**
         *根据用户id查询作者信息
         * @param id
         * @return
         */
        public ApAuthor findByUserId(@PathVariable("id") Integer id);

        /**
         * 保存作者
         * @param apAuthor
         * @return
         */
        public ResponseResult save(@RequestBody ApAuthor apAuthor);


}
